package com.ihrm.social.dao;

import com.ihrm.domain.social_security.ArchiveDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ArchiveDetailDao extends JpaRepository<ArchiveDetail,String>, JpaSpecificationExecutor<ArchiveDetail> {

    void deleteByArchiveId(String archiveId);
    
    List<ArchiveDetail> findByArchiveId(String archiveId);
    
    /**
     * 根据用户id和年月查询用户归档明细
     */
    ArchiveDetail findByUserIdAndYearsMonth(String userId,String yearMonth);
    
}
